package org.go.scheduler;

import org.go.domain.TriggerType;
import org.go.trigger.CronTrigger;
import org.go.trigger.Trigger;

public class ScheduleBuilder<T extends Trigger> {

	public Trigger build(String type) {
		if (TriggerType.ALWAYS.getName().equals(type)) {
			return null;
		} else if (TriggerType.REPEAT.getName().equals(type)) {
			return null;
		} else if (TriggerType.CONDITION.getName().equals(type)) {
			return new CronTrigger();
		}
		return null;
	}
}
